﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="home.aspx.cs" Inherits="EnmineKaitlin.Home" MasterPageFile="~/MasterPage/Default.Master" %>
<asp:Content ID="ctHome" ContentPlaceHolderID="cphContent" runat="server">    
    <div class="slider-wrapper theme-default" id="tvslider">        
        <asp:Repeater ID="rptBanner" runat="server">            
            <ItemTemplate>
                <%#Eval("Content") %>
            </ItemTemplate>                              
        </asp:Repeater>        
    </div>
    <div class="container">        
	    <div id="wp-content">
            <div id="content">      	        	  	
                <div class="gioithieu">            	
                    <div class="content-gioithieu">
                        <asp:Repeater ID="rptGioiThieu" runat="server">
                            <ItemTemplate>
                                <h3><%#Eval("Title") %></h3>
                	            <%#Eval("Excerpt")%>
                            </ItemTemplate>                	    
				        </asp:Repeater>                        
                    </div>                                    
                </div><!-- end gioithieu -->                                            	    
                <div id="project" class="box-sidebar">
                    <h2><asp:Label ID="lblFeaturedProject" runat="server"></asp:Label></h2>
        	        <asp:Repeater ID="rptProject" runat="server">
                        <HeaderTemplate>                        
                                <ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li>
                	            <a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>'><img src='<%#Eval("FeaturedImage") %>' /></a>
                                <h3><a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>'><%#Eval("Title") %></a></h3>
                                <p><%#Eval("Excerpt") %></p>
                                <a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>' class="readmore">Xem tiếp</a>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>                        
                                </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </div><!-- end project -->                                    
                <div id="thamdo">
            	    <div class="box-sidebar" id="box-thamdo">
                        <h2><asp:Label ID="lblPool" runat="server"></asp:Label></h2>
                        <div class="content">
                        <asp:Repeater ID="rptPoll" runat="server">                            
                            <ItemTemplate>                        
                                <input type="hidden" id="hdfPollID" value='<%#Eval("PollID") %>' />
                                <h4><%#Eval("PollTitle") %></h4>
                                <div  id="contentPoll">
                                <asp:Repeater ID="rptOptions" runat="server" DataSource='<%#list_option(int.Parse(Eval("PollID").ToString())) %>'>
                                    <ItemTemplate>
                                        <p><input type="radio" name="rdoOption" class="rdoOption" id='<%#Eval("OptionID") %>' /><%#Eval("OptionName") %></p>    
                                    </ItemTemplate>
                                </asp:Repeater>                                                                
                                <p><input type="button" id="btnVote" class="btn" value="Bình chọn" /><input type="button" class="btn" id="btnResult" value="Kết quả" /></p>                            
                                <input type="hidden" class="hdfurl" id="hdfHost" runat="server" value='<%#domain %>' />
                                </div>                                
                            </ItemTemplate>                            
                        </asp:Repeater>
                            <p class="link-thamdo"><asp:HyperLink ID="hplLinkThamDo" runat="server" Text="Thăm dò nhu cầu bất động sản" NavigateUrl="/survey/tham-do-nhu-cau-bat-dong-san"></asp:HyperLink> </p>
                        </div>
                    </div>
                    <asp:Repeater ID="rptBannerKhaoSat" runat="server">
                        <HeaderTemplate><div id="banner-thamdo"></HeaderTemplate>
                        <ItemTemplate><%#Eval("Content") %></ItemTemplate>
                        <FooterTemplate></div></FooterTemplate>
                    </asp:Repeater>                    
                </div>                
             </div>                
             <div id="sidebar-right">
                <div class="box-sidebar" id="box-news">
                    <h2><asp:Label ID="lblNewsHot" runat="server"></asp:Label></h2>
                    <asp:Repeater ID="rptNews" runat="server">
                        <HeaderTemplate>                                    	            
                                <ul>    
                        </HeaderTemplate>
                        <ItemTemplate>
                            <li><a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>'><%#Eval("Title") %></a></li>
                        </ItemTemplate>
                        <FooterTemplate>
                                </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>         	                    	                                            
                <div class="box-sidebar">
            	    <h2><asp:Label ID="lblExchangeRete" runat="server"></asp:Label></h2>
                    <div class="tygia content">
                	    <h3><img src="images/icon-gold.png" /><asp:Label ID="lblGold" runat="server"></asp:Label></h3>
                        <table cellspacing="1">
                    	    <tr>
                        	    <td><asp:Label ID="lblGoldType" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblSelling" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblBuying" runat="server"></asp:Label></td>
                            </tr>
                            <tr>
                        	    <td>SJC</td>
                                <td><label id="lblSjcBuy"></label></td>
                                <td><label id="lblSjcSell"></label></td>
                            </tr>
                            <tr>
                        	    <td>SBJ</td>
                                <td><label id="lblSbjBuy"></label></td>
                                <td><label id="lblSbjSell"></label></td>
                            </tr>
                        </table>
                    </div>
                    <div id="ngoaite" class="tygia content">
                	    <h3><img src="images/icon-dollar.png" /><asp:Label ID="lblRate" runat="server"></asp:Label></h3>
                        <div>
                        <table cellspacing="1">
                    	    <tr>
                        	    <td>USD</td>
                                <td><label id="lblUSD"></label></td>
                            </tr>
                            <tr>
                        	    <td>GBP</td>
                                <td><label id="lblGBP"></label></td>
                            </tr>
                            <tr>
                        	    <td>HKD</td>
                                <td><label id="lblHKD"></label></td>
                            </tr>
                            <tr>
                        	    <td>CHF</td>
                                <td><label id="lblCHF"></label></td>
                            </tr>
                            <tr>
                        	    <td>JPY</td>
                                <td><label id="lblJPY"></label></td>
                            </tr>
                            <tr>
                        	    <td>AUD</td>
                                <td><label id="lblAUD"></label></td>
                            </tr>
                            <tr>
                        	    <td>CAD</td>
                                <td><label id="lblCAD"></label></td>
                            </tr>
                            <tr>
                        	    <td>SGD</td>
                                <td><label id="lblSGD"></label></td>
                            </tr>
                            <tr>
                        	    <td>EUR</td>
                                <td><label id="lblEUR"></label></td>
                            </tr>
                            <tr>
                        	    <td>NZD</td>
                                <td><label id="lblNZD"></label></td>
                            </tr>
                            <tr>
                        	    <td>Bat Thái Lan</td>
                                <td><label id="lblBTL"></label></td>
                            </tr>
                        </table>
                        </div>
                    </div>
                </div>
                <div class="box-sidebar" id="box-newsletter">
            	    <h2><asp:Label ID="lblSubcrible" runat="server"></asp:Label></h2>
                    <div class="content">
                	    <asp:TextBox ID="txtEmail" CssClass="txt email email-sub" Width="175" Text="Nhập email của bạn" runat="server"></asp:TextBox>
                	    <asp:Button ID="btnSubcrible" runat="server" CssClass="btn" Text="Gửi" OnClick="btnSubcrible_Click" />
                    </div>
                </div>
                <asp:Repeater ID="rptLink" runat="server">
                    <HeaderTemplate>
                        <div class="box-sidebar" id="box-lienket">                        	            
                    </HeaderTemplate>
                    <ItemTemplate>
                        <h2><asp:Label ID="lblLink" Text='<%#Eval("Title") %>' runat="server"></asp:Label></h2>
                        <%#Eval("Content") %>
                    </ItemTemplate>
                    <FooterTemplate>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>                
                <div class="box-sidebar">
            	    <h2><asp:Label ID="lblStatistic" runat="server"></asp:Label></h2>
                    <div class="content">
                	    <table>
                    	    <tr><td><asp:Label ID="lblCountOnline" runat="server"></asp:Label>:</td><td><span class="online"><asp:Label ID="lblUserOnline" runat="server"></asp:Label></span><td></tr>
	                	    <tr><td><asp:Label ID="lblCountVisit" runat="server"></asp:Label>:</td><td><span class="online"><asp:Label ID="lblVisit" runat="server"></asp:Label></span></td></tr>
                        </table>
                    </div>
                </div>
             </div><!-- end sidebar -->
        </div>
        <asp:Repeater ID="rptHoatDong" runat="server">
            <HeaderTemplate>
                <div id="gallery">     
            </HeaderTemplate>
            <ItemTemplate>
                <%#Eval("Content") %>
            </ItemTemplate>
            <FooterTemplate>
                </div><!-- end gallery -->
            </FooterTemplate>
        </asp:Repeater>                   
</div>
</asp:Content>
